<?php

// Copyright (C) 2011 Cassian LUP <cassi.lup@gmail.com>
//
 // This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//SANITIZE ALL ESCAPES
$sanitize_all_escapes = true;

//STOP FAKE REGISTER GLOBALS
$fake_register_globals = false;

//continue session
if (!isset($_REQUEST['medico']))
    session_start();

//landing page definition -- where to go if something goes wrong
$landingpage = "index.php?site=" . $_SESSION['site_id'];
//
// kick out if patient not authenticated
if (isset($_SESSION['pid']) && isset($_SESSION['patient_portal_onsite'])) {
    $pid = $_SESSION['pid'];
} else {
    session_destroy();
    header('Location: ' . $landingpage . '&w');
    exit;
}
//

$ignoreAuth = true;
require_once('../interface/globals.php');
require_once("$srcdir/clinical_rules.php");

clinical_summary_widget_patient($pid, "reminders-due");
?>